package ar.com.tracking.navegacion_core.model;

import java.util.Date;
import java.util.Map;

/**
 *
 * @author Cuni
 */
public class Order {

    private String serial;
    private OrderState state;
    private Date endTime;
    private Date startTime;
    private String streetAdress;
    private Delivery delivery;
    private Map objectMap;


    /**
     * @return the serial
     */
    public String getSerial() {
        return serial;
    }

    /**
     * @param serial the serial to set
     */
    public void setSerial(String serial) {
        this.serial = serial;
    }

    /**
     * @return the state
     */
    public OrderState getState() {
        return state;
    }

    /**
     * @param state the state to set
     */
    public void setState(OrderState state) {
        this.state = state;
    }

    /**
     * @return the endTime
     */
    public Date getEndTime() {
        return endTime;
    }

    /**
     * @param endTime the endTime to set
     */
    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    /**
     * @return the startTime
     */
    public Date getStartTime() {
        return startTime;
    }

    /**
     * @param startTime the startTime to set
     */
    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    /**
     * @return the streetAdress
     */
    public String getStreetAdress() {
        return streetAdress;
    }

    /**
     * @param streetAdress the streetAdress to set
     */
    public void setStreetAdress(String streetAdress) {
        this.streetAdress = streetAdress;
    }
    
       /**
     * @return the objectMap
     */
    public Map getObjectMap() {
        return objectMap;
    }

    /**
     * @param objectMap the objectMap to set
     */
    public void setObjectMap(Map objectMap) {
        this.objectMap = objectMap;
    }
    
       /**
     * @return the delivery
     */
    public Delivery getDelivery() {
        return delivery;
    }

    /**
     * @param delivery the delivery to set
     */
    public void setDelivery(Delivery delivery) {
        this.delivery = delivery;
    }
    
    public Order(Date startTime, String streetAdress, Delivery delivery){
        
        this.serial = "";
        this.setDelivery(delivery);
        this.setStartTime(startTime);
        this.setEndTime(null);
        OrderState state = new Development();
        this.setState(state);
    }
    /*
    public String getOrderInfo(){
        
    }
    */
}
